package com.wuhan.template.module.home.activity;

import android.content.Intent;
import android.support.annotation.NonNull;

import com.google.gson.Gson;
import com.wuhan.template.R;
import com.wuhan.template.base.BaseActivity;
import com.wuhan.template.constant.Urls;
import com.wuhan.template.utils.EventMessage;
import com.wuhan.template.utils.OkHttpUtils;

/**
 * Created by Administrator on 2016/5/10 0010.
 */
public class HomeItemDetail extends BaseActivity{

    private String id;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_home_item_detail;
    }

    @Override
    protected void initViews() {
        super.initViews();

        Intent intent = getIntent();
        id = intent.getStringExtra("id");
    }

    @Override
    protected void loadData() {
        OkHttpUtils.get(Urls.HOME_ADVERTISING+id,null);
    }

    @Override
    protected void postEventResult(@NonNull EventMessage message) {

        if (message.type.equals(Urls.HOME_ADVERTISING+id)){
            Gson gson = new Gson();

        }
    }


}
